package com.domain;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class Comment {
    private Integer id;
    private Integer author_id;
    private String content;
    //日期类型：
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdate;
    private Integer member_id;
    private Integer contribute_id;
    private Integer resource_id;
    private Integer discuss_id;
    private Discuss discuss;
    private Member member;
    private User user;
    private Contribute contribute;
    private Resources resources;
    private List<Reply> reply;

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", author_id=" + author_id +
                ", content='" + content + '\'' +
                ", createdate=" + createdate +
                ", member_id=" + member_id +
                ", contribute_id=" + contribute_id +
                ", resource_id=" + resource_id +
                ", discuss_id=" + discuss_id +
                ", discuss=" + discuss +
                ", member=" + member +
                ", user=" + user +
                ", contribute=" + contribute +
                ", resources=" + resources +
                ", reply=" + reply +
                '}';
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAuthor_id() {
        return author_id;
    }

    public void setAuthor_id(Integer author_id) {
        this.author_id = author_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getMember_id() {
        return member_id;
    }

    public void setMember_id(Integer member_id) {
        this.member_id = member_id;
    }

    public Integer getContribute_id() {
        return contribute_id;
    }

    public void setContribute_id(Integer contribute_id) {
        this.contribute_id = contribute_id;
    }

    public Integer getResource_id() {
        return resource_id;
    }

    public void setResource_id(Integer resource_id) {
        this.resource_id = resource_id;
    }

    public Integer getDiscuss_id() {
        return discuss_id;
    }

    public void setDiscuss_id(Integer discuss_id) {
        this.discuss_id = discuss_id;
    }

    public Discuss getDiscuss() {
        return discuss;
    }

    public void setDiscuss(Discuss discuss) {
        this.discuss = discuss;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public Contribute getContribute() {
        return contribute;
    }

    public void setContribute(Contribute contribute) {
        this.contribute = contribute;
    }

    public Resources getResources() {
        return resources;
    }

    public void setResources(Resources resources) {
        this.resources = resources;
    }

    public List<Reply> getReply() {
        return reply;
    }

    public void setReply(List<Reply> reply) {
        this.reply = reply;
    }
}
